﻿#pragma once

#include <QObject>
#include <QGraphicsItem>
#include <anchoritem.h>
class lineItem : public QObject, public QGraphicsItem
{
	Q_OBJECT

public:
	lineItem(QRectF rect = QRectF(0, 0, 200, 200), bool isParent = false);
	~lineItem();
	QRectF boundingRect() const override;
	void paint(QPainter* painter, const QStyleOptionGraphicsItem* option,
		QWidget* widget) override;
private:
	QSizeF m_ItemSize;
	QPointF m_CurrentScenePos, m_PressScenePos;
};
